<template>
  <div>
    <StreamInfoMobile
      v-if="isGroupCall && !isPC"
      :showSwitchCameraButton="showSwitchCameraButton"
      :showVirtualBackgroundButton="showVirtualBackgroundButton"
      :nickName="nickName"
      :showNickName="showNickName"
      :isSelf="isSelf"
      :isMuted="isMuted"
      :volume="volume"
    />
  </div>
</template>

<script lang="ts">
export default {
  options: {
    virtualHost: true
  }
}
</script>

<script setup lang="ts">
import { TUIGlobal } from '../../../../TUICallService';
import StreamInfoMobile from './StreamInfoMobile.vue';
import { StreamInfoProps } from './StreamInfo';
import { useCallInfoContext } from '../../../hooks';

const { isGroupCall } = useCallInfoContext();
const isPC = TUIGlobal.isPC;
defineProps(StreamInfoProps);
</script>
